﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace BuddHa.Camera.Protcol.HK.Models
{
    public class CameraOnlineGetModel : BaseModel
    {
        public CameraOnlineGetModel() : base("/artemis/api/nms/v1/online/camera/get", EnumRequestMethod.Post)
        {

        }

        public class OnLineSearchCameraRequest
        {

            [JsonPropertyName("indexCodes")]
            public string[] IndexCodes { get; set; }

            [JsonPropertyName("pageNo")]
            public int PageNo { get; set; } = 1;

            [JsonPropertyName("pageSize")]
            public int PageSize { get; set; } = 100;
        }

        public class OnLineSearchCameraResponse
        {
            public int PageNo { get; set; }

            public int PageSize { get; set; }

            public int TotalPage { get; set; }

            public int Total { get; set; }

            public List<ListModel> List { get; set; }

            public class ListModel
            {
                //public string DeviceType { get; set; }

                public string IndexCode { get; set; }

                //public string RegionIndexCode { get; set; }

                //public DateTime CollectTime { get; set; }

                public string RegionName { get; set; }

                //public string IndexCode { get; set; }

                /// <summary>
                /// 设备名称
                /// </summary>
                //public string Cn { get; set; }

                //public string TreatyType { get; set; }

                public string Manufacturer { get; set; }

                //public string Ip { get; set; }

                //public string Port { get; set; }

                public int? OnLine { get; set; }
            }
        }
    }
}
